package com.hf.interfacedemo;

/**
 * @author Lenovo-Healer
 */
public class TestDriver {
    public static void main(String[] args) {
        /**
         * 匿名内部类？
         */
        ISportable iSportable = new ISportable() {
            @Override
            public void fly() {
                System.out.println("main is fiy");
            }

            @Override
            public void sport() {

            }

            @Override
            public void move() {

            }
        };
        iSportable.prinMe();
        iSportable.fly();
    }
}
